package com.easy.mapper;

import com.easy.bean.Product_Size;
import com.easy.service.Product_SizeService;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Mapper
public interface Product_SizeDao {
    int add(@Param("product_size") Product_Size product_size);
        int del(@Param("id") Integer id);
            int edit(@Param("product_size") Product_Size product_size);
                Product_Size one(@Param("id") Integer id);
                    List<Product_Size> all(@Param("product_size") Product_Size product_size);
                    List<Product_Size> page(@Param("product_size") Product_Size product_size, @Param("page") Page page);
                    int pageCount(@Param("product_size") Product_Size product_size);
    int batchAdd(List<Product_Size> product_sizeList);
    List<Product_Size> getByProductId(Integer productId);



}
